import { axios } from '@/utils/request'

const api = {
  alipayTemplateUploadLogin: '/setting/alipay-template-upload/login',
  alipayTemplateUploadUpload: '/setting/alipay-template-upload/upload',
  alipayTemplateUploadAdd: '/setting/alipay-template-upload/add-template'
}

export default api


export function alipayTemplateUploadLogin (parameter) {
  return axios({
    url: api.alipayTemplateUploadLogin,
    method: 'post',
    data: parameter
  })
}

export function alipayTemplateUploadUpload (parameter) {
  return axios({
    url: api.alipayTemplateUploadUpload,
    method: 'post',
    data: parameter
  })
}

export function alipayTemplateUploadAdd (parameter) {
  return axios({
    url: api.alipayTemplateUploadAdd,
    method: 'get',
    params: parameter
  })
}